<?php

namespace App\Admin\Controllers;

class IndexController extends Controller
{
    /**
     * 首页
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function index()
    {
        return view('admin.index.index');
    }

    public function example()
    {
        return view('admin.index.example');
    }

    /**
     * 时间线
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function timeline()
    {
        $items = [
            '2018-07-30'       => '項目立項',
        ];
        $items = collect($items)->sortKeysDesc()->all();

        return view('admin.index.timeline', [
            'items' => $items,
        ]);
    }
}
